package com.lpf.adapter;

// 客户端代码
public class AdapterPatternDemo {
    public static void main(String[] args) {
        OldDataReader oldDataReader = new OldDataReader();
        NewDataReader newDataReader = new DataAdapter(oldDataReader);

        // 使用新接口读取数据
        System.out.println(newDataReader.readNewFormatData());
    }
}